﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration.Provider;

namespace JeanFish.Caching
{
    public abstract class CacheProvider<EntryType>:ProviderBase
    {
        public abstract EntryType Add(string key, EntryType entry, DateTime utcExpiry);
        public abstract EntryType Get(string key);
        public abstract bool Set(string key,EntryType entry,DateTime utcExpiry);
        public abstract bool Remove(string key);
        public abstract bool Remove(IEnumerable<string> keys);
    }
    public abstract class CacheProvider : CacheProvider<object>
    {
    }
}
